package elib;

public class Ksiazka {
	private int idKsiazki; 
	private String tytul; 
	private String autor; 
	private String dataWydania; 
	private int iloscStron; 
	private String isbn; 
	private String status;
	private String fragment;
	
	public Ksiazka(int idKsiazki, String tytul, String autor, 
			String dataWydania, int iloscStron, String isbn, String status, String fragment){
		this.idKsiazki = idKsiazki;
		this.tytul = tytul;
		this.autor = autor;
		this.dataWydania = dataWydania;
		this.iloscStron = iloscStron;
		this.isbn = isbn;
		if(status.equals("1"))
			this.status = "Nie";
		else
			this.status = "Tak";
		this.fragment=fragment;
				}
	
	public int getIdKsiazki() {
		return idKsiazki;
	}
	
	public String getTytul() {
		return tytul;
	}
	
	public String getAutor() {
		return autor;
	}
	
	public String getDataWydania() {
		return dataWydania;
	}
	
	public int getIloscStron() {
		return iloscStron;
	}
	
	public String getIsbn() {
		return isbn;
	}
	
	public String getStatus() {
		return status;
	}
	public String getFragment() {
		return fragment;
	}
}
